﻿using UnityEngine;

namespace Assets.Scripts.Interface
{
    class CanvasController : MonoBehaviour
    {
        public Texture FadeTexture;

        void Awake()
        {
            foreach (Transform child in this.gameObject.transform)
            {
                child.GetComponent<InterfaceBase>().FadeTexture = FadeTexture;
                child.gameObject.SetActive(false);
            }

            this.gameObject.transform.GetChild(0).gameObject.SetActive(true);
        }
    }
}
